<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>业主缴费明细</title>
<LINK href="images/css.css" type="text/css" rel="stylesheet">
</head>
<body>
 <center>
 <table align="center" width="80%" border="0">
	 <tr>
     <td colspan="16" class="STYLE4" align="center" bgcolor="#ffffff" colspan="2" height="40">业主缴费明细表(${year }年${month }月)
     &nbsp;&nbsp;&nbsp;&nbsp; 
     </td>
     </tr>
     <tr><td>
		<table class="tableline" id="Table1" cellspacing="1" cellpadding="0" width="100%" border="0">
		    <tr align="center">
		      <td width="6%" height="40" bgcolor="#ffffff">业主</td>
		      <td width="6%" bgcolor="#ffffff">应缴金额</td>
		      <td width="6%" bgcolor="#ffffff">实收金额</td>
		      <td width="6%" bgcolor="#ffffff">物业服务费</td>
		      <td width="7%" bgcolor="#ffffff">单独物业服务费</td>
		      <td width="2%" bgcolor="#ffffff">电费</td>
		      <td width="2%" bgcolor="#ffffff">水费</td>
		      <td width="6%" bgcolor="#ffffff">停车服务费</td>
		      <td width="6%" bgcolor="#ffffff">垃圾清运费</td>
		      <td width="6%" bgcolor="#ffffff">路灯电费</td>
		       <td width="6%" bgcolor="#ffffff">二次提水电费</td>
		      <td width="4%" bgcolor="#ffffff">单独电费</td>
		      <td width="4%" bgcolor="#ffffff">单独水费</td>
		      <td width="7%" bgcolor="#ffffff">单独垃圾清运费</td>      
		      <td width="6%" bgcolor="#ffffff">单独路灯电费</td>
		      <td width="8%" bgcolor="#ffffff">单独二次提水电费</td>
		    </tr>
		    <c:if test="${empty pm.datas}"> 查询的数据为空的。 </c:if>
		<c:if test="${!empty pm.datas}">   
			<c:forEach items="${pm.datas }" var="queryMap">
		        <tr align="center">
		  <td  align="center" bgcolor="#ffffff">
				${queryMap.ownerName}
				</td>
				
				<td  align="right" bgcolor="#ffffff">
				<fmt:formatNumber value="${queryMap.paidSum }" pattern="0.00" />&nbsp;
				</td>
				<td  align="right" bgcolor="#ffffff">
				<fmt:formatNumber value="${queryMap.propCharge }" pattern="0.00" />&nbsp;
				</td>
				<td  align="right" bgcolor="#ffffff">
				<fmt:formatNumber value="${queryMap.powerCharge }" pattern="0.00" />&nbsp;
				</td>
				<td  align="right" bgcolor="#ffffff">
				<fmt:formatNumber value="${queryMap.waterCharge }" pattern="0.00" />&nbsp;
				</td>
				<td  align="right" bgcolor="#ffffff">
				<fmt:formatNumber value="${queryMap.carCharge }" pattern="0.00" />&nbsp;
				</td>	
				<td  align="right" bgcolor="#ffffff">
				<fmt:formatNumber value="${queryMap.rubbishCharge }" pattern="0.00" />&nbsp;
				</td>
				<td align="right" bgcolor="#ffffff">
				<fmt:formatNumber value="${queryMap.lightCharge }" pattern="0.00" />&nbsp;
				</td>
				<td  align="right" bgcolor="#ffffff">
				<fmt:formatNumber value="${queryMap.water2ndCharge }" pattern="0.00" />&nbsp;
				</td>	
				<td  align="right" bgcolor="#ffffff">
				<fmt:formatNumber value="${queryMap.totalSum }" pattern="0.00" />&nbsp;
				</td>	
				
				
					<td  align="right" bgcolor="#ffffff">
				<fmt:formatNumber value="${queryMap.charge1 }" pattern="0.00" />&nbsp;
				</td>
				<td  align="right" bgcolor="#ffffff">
				<fmt:formatNumber value="${queryMap.charge2 }" pattern="0.00" />&nbsp;
				</td>
				<td  align="right" bgcolor="#ffffff">
				<fmt:formatNumber value="${queryMap.charge3 }" pattern="0.00" />&nbsp;
				</td>
				<td  align="right" bgcolor="#ffffff">
				<fmt:formatNumber value="${queryMap.charge4 }" pattern="0.00" />&nbsp;
				</td>
				<td  align="right" bgcolor="#ffffff">
				<fmt:formatNumber value="${queryMap.charge5 }" pattern="0.00" />&nbsp;
				</td>
				<td  align="right" bgcolor="#ffffff">
				<fmt:formatNumber value="${queryMap.charge6 }" pattern="0.00" />&nbsp;
				</td>
				
				
									
		        </tr>
		      </c:forEach>
		 </c:if>
		    <tr>
			<td bgcolor="#ffffff" colspan="16">
				<center>
					<pg:pager url="propQuery.do" items="${pm.total }" export="currentPageNumber=pageNumber">
						<pg:first>
							<a href="${pageUrl }&subId=${subId }&distId=${distId}&year=${year }&month=${month }&pageType=0">首页</a>
		
						</pg:first>
						<pg:prev>
							<a href="${pageUrl }&subId=${subId }&distId=${distId}&year=${year }&month=${month }&pageType=0">上一页</a>
						</pg:prev>
						<pg:pages>
							<c:choose>
								<c:when test="${currentPageNumber eq pageNumber}">
									<font color="red">${pageNumber }</font>
								</c:when>
								<c:otherwise>
									<a href="${pageUrl }&subId=${subId }&distId=${distId}&year=${year }&month=${month }&pageType=0">${pageNumber }</a>
								</c:otherwise>
							</c:choose>
						</pg:pages>
						<pg:next>
							<a href="${pageUrl }&subId=${subId}&distId=${distId}&year=${year }&month=${month }&pageType=0">下一页</a>
						</pg:next>
						<pg:last>
							<a href="${pageUrl }&subId=${subId }&distId=${distId}&year=${year }&month=${month }&pageType=0">尾页</a>
						</pg:last>
					</pg:pager>
				</center>
				</td>
			</tr>
		  </table>
		</td></tr>
	<tr>
		<td align="right"><input
						type="button" value="导出Excel报表" style="color: green;"
						onclick="window.location.href='propQuery.do?method=doQueryOwnerChargeToExcel&year=${year }&month=${month }&subId=${subId}&distId=${distId}&pageType=0'">
		</td>
	</tr>
</table>		  
</center>
</body>
</html>